[INFO] cloning repository https://github.com/kregoslup/r_nes
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kregoslup/r_nes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkregoslup%2Fr_nes", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkregoslup%2Fr_nes'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c1b4c0b877663c996ca473c6d04e7fec6bf30441
[INFO] building kregoslup/r_nes against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkregoslup%2Fr_nes" "/workspace/builds/worker-10/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/kregoslup/r_nes on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/kregoslup/r_nes
[INFO] finished tweaking git repo https://github.com/kregoslup/r_nes
[INFO] tweaked toml for git repo https://github.com/kregoslup/r_nes written to /workspace/builds/worker-10/source/Cargo.toml
[INFO] crate git repo https://github.com/kregoslup/r_nes already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded xkbcommon-sys v0.7.4
[INFO] [stderr]   Downloaded minifb v0.19.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 67ee128ba921222e8e9e31a671e3adf75f31ff63859682e56e5e9f7850e443d4
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "67ee128ba921222e8e9e31a671e3adf75f31ff63859682e56e5e9f7850e443d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "67ee128ba921222e8e9e31a671e3adf75f31ff63859682e56e5e9f7850e443d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67ee128ba921222e8e9e31a671e3adf75f31ff63859682e56e5e9f7850e443d4", kill_on_drop: false }`
[INFO] [stdout] 67ee128ba921222e8e9e31a671e3adf75f31ff63859682e56e5e9f7850e443d4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 5a13a43289dfdfca28b06caecbe3ed3ed90669c4a94047776e5d988ae946eb1c
[INFO] running `Command { std: "docker" "start" "-a" "5a13a43289dfdfca28b06caecbe3ed3ed90669c4a94047776e5d988ae946eb1c", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.21
[INFO] [stderr]    Compiling nix v0.17.0
[INFO] [stderr]    Compiling once_cell v1.4.1
[INFO] [stderr]    Compiling wayland-sys v0.27.0
[INFO] [stderr]    Compiling xkbcommon-sys v0.7.4
[INFO] [stderr]    Compiling x11-dl v2.18.5
[INFO] [stderr]    Compiling minifb v0.19.1
[INFO] [stderr]    Compiling getrandom v0.1.14
[INFO] [stderr]    Compiling nom v5.1.2
[INFO] [stderr]    Compiling dirs-sys v0.3.4
[INFO] [stderr]    Compiling raw-window-handle v0.3.3
[INFO] [stderr]    Compiling dirs v2.0.2
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling xkb v0.2.1
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling wayland-scanner v0.27.0
[INFO] [stderr]    Compiling tempfile v3.1.0
[INFO] [stderr]    Compiling xcursor v0.3.2
[INFO] [stderr]    Compiling wayland-client v0.27.0
[INFO] [stderr]    Compiling wayland-protocols v0.27.0
[INFO] [stderr]    Compiling wayland-commons v0.27.0
[INFO] [stderr]    Compiling wayland-cursor v0.27.0
[INFO] [stderr]    Compiling r_nes v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Implied`
[INFO] [stdout]  --> src/cpu.rs:3:173
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...d, Absolute, AbsoluteIndexed, Accumulator, Indirect, Relative, Implied};
[INFO] [stdout]   |                                                                   ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AddressingMode`
[INFO] [stdout]  --> src/cpu.rs:5:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::addressing::{Addressing, AddressingMode, AddressingRegistry};
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/cpu.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CartridgeLoader`, `Cartridge`
[INFO] [stdout]   --> src/cpu.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::cartridge::{CartridgeLoader, Cartridge};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]   --> src/cpu.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::path::Path;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/cpu.rs:109:45
[INFO] [stdout]     |
[INFO] [stdout] 109 |         if self.overflow_occurred(lhs, rhs, (result as u8)) {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/cpu.rs:155:32
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let indirect_address = (self.fetch(self.program_counter) as u16);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::addressing::Addressing`
[INFO] [stdout]  --> src/op_code.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::addressing::Addressing;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/bus.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/bus.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/bus.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dirs::home_dir`
[INFO] [stdout]  --> src/bus.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use dirs::home_dir;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CartridgeLoader`
[INFO] [stdout]  --> src/bus.rs:6:35
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::cartridge::{Cartridge, CartridgeLoader};
[INFO] [stdout]   |                                   ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::cpu::Cpu`
[INFO] [stdout]  --> src/bus.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::cpu::Cpu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`
[INFO] [stdout]  --> src/addressing.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{BorrowMut, Borrow};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Error`, `Formatter`
[INFO] [stdout]  --> src/flags.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use bitflags::_core::fmt::{Formatter, Error};
[INFO] [stdout]   |                            ^^^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `combine_nibbles`
[INFO] [stdout]  --> src/cartridge.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::util::{combine_nibbles, nth_bit};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/cartridge.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/cartridge.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Key`
[INFO] [stdout]  --> src/screen.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use minifb::{Key, Window, WindowOptions};
[INFO] [stdout]   |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Write`
[INFO] [stdout]   --> src/cpu.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::fmt::Write as FmtWrite;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter`
[INFO] [stdout]   --> src/cpu.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut counter = 0;
[INFO] [stdout]    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addressing`
[INFO] [stdout]    --> src/cpu.rs:180:36
[INFO] [stdout]     |
[INFO] [stdout] 180 |     fn indirect_address(&mut self, addressing: &Addressing) -> u16 {
[INFO] [stdout]     |                                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_addressing`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addressing`
[INFO] [stdout]    --> src/cpu.rs:192:28
[INFO] [stdout]     |
[INFO] [stdout] 192 |     fn relative(&mut self, addressing: &Addressing) -> u16 {
[INFO] [stdout]     |                            ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_addressing`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `borrow`
[INFO] [stdout]    --> src/cpu.rs:789:13
[INFO] [stdout]     |
[INFO] [stdout] 789 |         let borrow = self.get_borrow();
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrow`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `lhs_page`
[INFO] [stdout]    --> src/cpu.rs:830:13
[INFO] [stdout]     |
[INFO] [stdout] 830 |         let lhs_page = lhs % 255;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_page`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rhs_page`
[INFO] [stdout]    --> src/cpu.rs:831:13
[INFO] [stdout]     |
[INFO] [stdout] 831 |         let rhs_page = rhs % 255;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_page`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapped`
[INFO] [stdout]   --> src/cartridge.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let mapped = self.map_cpu_address(address);
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapped`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]   --> src/cartridge.rs:64:47
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn cpu_write(&mut self, address: u16, value: u8) {
[INFO] [stdout]    |                                               ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/ppu.rs:148:36
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn ppu_master_slave(&mut self, value: u8) {
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `real_address`
[INFO] [stdout]    --> src/ppu.rs:195:13
[INFO] [stdout]     |
[INFO] [stdout] 195 |         let real_address = address & PPU_ADDRESSABLE_RANGE;
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_real_address`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `real_address`
[INFO] [stdout]    --> src/ppu.rs:200:13
[INFO] [stdout]     |
[INFO] [stdout] 200 |         let real_address = address & PPU_ADDRESSABLE_RANGE;
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_real_address`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/ppu.rs:199:51
[INFO] [stdout]     |
[INFO] [stdout] 199 |     pub fn save_internal(&mut self, address: u16, value: u8) {
[INFO] [stdout]     |                                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `address`
[INFO] [stdout]    --> src/ppu.rs:213:28
[INFO] [stdout]     |
[INFO] [stdout] 213 |     fn get_tile(&mut self, address: u16) -> Vec<u8> {
[INFO] [stdout]     |                            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let mut ppu = Ppu::new(cartridge.chr_rom.clone(), vec![]);
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cpu.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut counter = 0;
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cpu.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut output = File::create(path).unwrap();
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:548:13
[INFO] [stdout]     |
[INFO] [stdout] 548 |         let mut cycles = 6;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:557:13
[INFO] [stdout]     |
[INFO] [stdout] 557 |         let mut cycles = 6;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:582:13
[INFO] [stdout]     |
[INFO] [stdout] 582 |         let mut cycles = 2;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:603:14
[INFO] [stdout]     |
[INFO] [stdout] 603 |         let (mut value, address) = self.fetch_with_addressing_mode(&addressing);
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:759:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |         let mut result = (Wrapping(target) - Wrapping(value)).0;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:775:13
[INFO] [stdout]     |
[INFO] [stdout] 775 |         let mut result = (self.acc as u16) + (value as u16) + (self.status.contains(Flags::CARRY) as u16);
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cpu.rs:791:13
[INFO] [stdout]     |
[INFO] [stdout] 791 |         let mut result = Wrapping(self.acc as u16) - (Wrapping(value as u16) - Wrapping(carry));
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `carry_arithmetic`
[INFO] [stdout]    --> src/cpu.rs:746:8
[INFO] [stdout]     |
[INFO] [stdout] 746 |     fn carry_arithmetic(&mut self, operation: fn(u8, u8) -> (u8, bool), lhs: u8, rhs: u8) -> (u8, bool) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant is never constructed: `Implied`
[INFO] [stdout]   --> src/addressing.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     Implied,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `combine_nibbles`
[INFO] [stdout]  --> src/util.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn combine_nibbles(lsb: u8, msb: u8) -> u8 {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/cartridge.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 47 |     pub fn new() -> Cartridge {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `ppu_read`
[INFO] [stdout]   --> src/cartridge.rs:60:12
[INFO] [stdout]    |
[INFO] [stdout] 60 |     pub fn ppu_read(&mut self, address: u16) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `cpu_write`
[INFO] [stdout]   --> src/cartridge.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn cpu_write(&mut self, address: u16, value: u8) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `map_ppu_address`
[INFO] [stdout]   --> src/cartridge.rs:76:8
[INFO] [stdout]    |
[INFO] [stdout] 76 |     fn map_ppu_address(&mut self, address: u16) -> u8 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static is never used: `PPU_ADDRESSABLE_RANGE`
[INFO] [stdout]  --> src/ppu.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | static PPU_ADDRESSABLE_RANGE: u16 = 0x3FF;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `fetch_internal`
[INFO] [stdout]    --> src/ppu.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |     pub fn fetch_internal(&mut self, address: u16) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `save_internal`
[INFO] [stdout]    --> src/ppu.rs:199:12
[INFO] [stdout]     |
[INFO] [stdout] 199 |     pub fn save_internal(&mut self, address: u16, value: u8) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `evaluate_background`
[INFO] [stdout]    --> src/ppu.rs:203:8
[INFO] [stdout]     |
[INFO] [stdout] 203 |     fn evaluate_background(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_tile`
[INFO] [stdout]    --> src/ppu.rs:213:8
[INFO] [stdout]     |
[INFO] [stdout] 213 |     fn get_tile(&mut self, address: u16) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_colour`
[INFO] [stdout]    --> src/ppu.rs:220:8
[INFO] [stdout]     |
[INFO] [stdout] 220 |     fn get_colour(address: u16) -> u8 {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field is never read: `window`
[INFO] [stdout]   --> src/screen.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     window: Window
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `run_emulation`
[INFO] [stdout]   --> src/main.rs:33:4
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn run_emulation() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 48 |     file.read_to_end(&mut data);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cpu.rs:297:17
[INFO] [stdout]     |
[INFO] [stdout] 297 | /                 writeln!(
[INFO] [stdout] 298 | |                     logfile,
[INFO] [stdout] 299 | |                     "{} A:{} X:{} Y:{} P:{} SP:{}",
[INFO] [stdout] 300 | |                     self.debug_format(self.program_counter),
[INFO] [stdout] ...   |
[INFO] [stdout] 305 | |                     self.debug_format(self.stack_pointer)
[INFO] [stdout] 306 | |                 );
[INFO] [stdout]     | |__________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/cpu.rs:826:9
[INFO] [stdout]     |
[INFO] [stdout] 826 |         value > 0x00FF
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/cartridge.rs:20:33
[INFO] [stdout]    |
[INFO] [stdout] 20 |         if address >= 0x8000 && address <= 0xFFFF {
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/ppu.rs:63:12
[INFO] [stdout]    |
[INFO] [stdout] 63 |         if (0 <= self.scanline) && (self.scanline >= 239) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 64 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
[INFO] running `Command { std: "docker" "inspect" "5a13a43289dfdfca28b06caecbe3ed3ed90669c4a94047776e5d988ae946eb1c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5a13a43289dfdfca28b06caecbe3ed3ed90669c4a94047776e5d988ae946eb1c", kill_on_drop: false }`
[INFO] [stdout] 5a13a43289dfdfca28b06caecbe3ed3ed90669c4a94047776e5d988ae946eb1c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9ecf9547c6f88a45ae0e2eeceed1f5865959dad9a3d51a9c47e1eb6c8b6e9f26
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "9ecf9547c6f88a45ae0e2eeceed1f5865959dad9a3d51a9c47e1eb6c8b6e9f26", kill_on_drop: false }`
[INFO] [stderr]    Compiling r_nes v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Implied`
[INFO] [stdout]  --> src/cpu.rs:3:173
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...d, Absolute, AbsoluteIndexed, Accumulator, Indirect, Relative, Implied};
[INFO] [stdout]   |                                                                   ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AddressingMode`
[INFO] [stdout]  --> src/cpu.rs:5:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::addressing::{Addressing, AddressingMode, AddressingRegistry};
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/cpu.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CartridgeLoader`, `Cartridge`
[INFO] [stdout]   --> src/cpu.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::cartridge::{CartridgeLoader, Cartridge};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]   --> src/cpu.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::path::Path;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/cpu.rs:109:45
[INFO] [stdout]     |
[INFO] [stdout] 109 |         if self.overflow_occurred(lhs, rhs, (result as u8)) {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/cpu.rs:155:32
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let indirect_address = (self.fetch(self.program_counter) as u16);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]     --> src/cpu.rs:1293:36
[INFO] [stdout]      |
[INFO] [stdout] 1293 |         let stored_acc = cpu.fetch(((cpu.stack_pointer + 1) as u16));
[INFO] [stdout]      |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::addressing::Addressing`
[INFO] [stdout]  --> src/op_code.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::addressing::Addressing;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/op_code.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/bus.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/bus.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/bus.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dirs::home_dir`
[INFO] [stdout]  --> src/bus.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use dirs::home_dir;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CartridgeLoader`
[INFO] [stdout]  --> src/bus.rs:6:35
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::cartridge::{Cartridge, CartridgeLoader};
[INFO] [stdout]   |                                   ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::cpu::Cpu`
[INFO] [stdout]  --> src/bus.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::cpu::Cpu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`
[INFO] [stdout]  --> src/addressing.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{BorrowMut, Borrow};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Error`, `Formatter`
[INFO] [stdout]  --> src/flags.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use bitflags::_core::fmt::{Formatter, Error};
[INFO] [stdout]   |                            ^^^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `combine_nibbles`
[INFO] [stdout]  --> src/cartridge.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::util::{combine_nibbles, nth_bit};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/cartridge.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/cartridge.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Key`
[INFO] [stdout]  --> src/screen.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use minifb::{Key, Window, WindowOptions};
[INFO] [stdout]   |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/cpu.rs:856:9
[INFO] [stdout]     |
[INFO] [stdout] 856 |         Cpu::new(bus)
[INFO] [stdout]     |         ^^^^^^^^ --- supplied 1 argument
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected 2 arguments
[INFO] [stdout]     |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/cpu.rs:50:12
[INFO] [stdout]     |
[INFO] [stdout] 50  |     pub fn new(bus: Bus, program_counter: Option<u16>) -> Cpu {
[INFO] [stdout]     |            ^^^ --------  ----------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Write`
[INFO] [stdout]   --> src/cpu.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::fmt::Write as FmtWrite;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 23 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `r_nes`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "9ecf9547c6f88a45ae0e2eeceed1f5865959dad9a3d51a9c47e1eb6c8b6e9f26", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9ecf9547c6f88a45ae0e2eeceed1f5865959dad9a3d51a9c47e1eb6c8b6e9f26", kill_on_drop: false }`
[INFO] [stdout] 9ecf9547c6f88a45ae0e2eeceed1f5865959dad9a3d51a9c47e1eb6c8b6e9f26
